body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
}
a {
    text-decoration: none;
    outline: none;
}
.sidebar {
    width: 250px; /* 固定宽度 */
    height: 100vh;
    background-color: #ff8fab;
    color: white;
    padding-top: 20px;
    position: fixed;
    overflow-y: auto;
    transition: transform 0.3s ease; /* 添加过渡效果 */
    z-index: 100; /* 确保在内容上方 */
}

.sidebar-header {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 20px;
}

.sidebar-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.nav-link {
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-link:hover, .nav-link.active {
    background-color: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    border-left-color: #ffd700;
}

.main-content {
    margin-left: 250px;
    padding: 30px;
    transition: margin-left 0.3s ease; /* 添加过渡效果 */
    min-height: 100vh;
}

.page-title {
    color: #d63384;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.stat-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.stat-card i {
    font-size: 2rem;
    color: #ff69b4;
    margin-bottom: 15px;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #d63384;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: #666;
    font-size: 0.9rem;
}

.section-title {
    color: #d63384;
    margin: 30px 0 20px;
    font-size: 1.3rem;
}

.recent-items {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.item-list {
    list-style: none;
    padding: 0;
}

.item-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-content {
    flex-grow: 1;
}

.item-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.item-meta {
    font-size: 0.8rem;
    color: #666;
}

.item-actions a {
    color: #ff69b4;
    margin-left: 10px;
    text-decoration: none;
}

.item-actions a:hover {
    text-decoration: underline;
}

.card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 20px;
    margin-bottom: 30px;
}

.card-title {
    color: #d63384;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-control:focus {
    border-color: #ff69b4;
    outline: none;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.form-check {
    margin-bottom: 20px;
}

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #ff69b4;
    color: white;
}

.btn-primary:hover {
    background-color: #d63384;
}

.table-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.data-table th {
    background-color: #fff0f3;
    color: #d63384;
    font-weight: bold;
}

.data-table tr:hover {
    background-color: #f9f9f9;
}

.action-btn {
    padding: 5px 10px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-edit {
    background-color: #28a745;
    color: white;
}

.btn-edit:hover {
    background-color: #218838;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
}

.btn-top {
    background-color: #ffc107;
    color: #212529;
}

.btn-top:hover {
    background-color: #e0a800;
}

.btn-untop {
    background-color: #6c757d;
    color: white;
}

.btn-untop:hover {
    background-color: #5a6268;
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-top {
    background-color: #ff69b4;
    color: white;
}

.message {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    padding: 25px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-title {
    color: #d63384;
    margin-top: 0;
    margin-bottom: 20px;
}

.logout-btn {
    margin-top: 20px;
    text-align: center;
}

.logout-btn a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.logout-btn a:hover {
    background-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
    }
    
    .data-table th:nth-child(3), 
    .data-table td:nth-child(3) {
        display: none;
    }
            
}